export const longTypeTabArr = [
	{
		tabName: '长约采购',
		tabIndex: 0,
		requestParams: {
			// periodType: 'L',
			orderType: 'P'
		}
	},
	{
		tabName: '长约销售',
		tabIndex: 1,
		requestParams: {
			// periodType: 'S', //老接口参数，更新后注意调整
			orderType: 'S'
		}
	}
]

export const commonStatusTabArr = [{
	text: '草稿',
	statusList: ['RPT_DRAFT']
}, {
	text: '审批',
	statusList: ['RPT_AUDITING', 'RPT_AUDIT_UNPASS']
}, {
	text: '进行中',
	statusList: ['RPT_AUDIT_PASS', 'WAIT_CONFIRM', 'WAIT_AUDIT', 'WAIT_SIGN', 'AUDIT_UNPASS', 'SINGLE_SIGNED', 'DOUBLE_SIGNED', 'EXECUTING', 'COLL_GD', 'DLVR_GD', 'PRE_AUDIT']
}, {
	text: '已完成',
	statusList: ['COMPLETED']
}, {
	text: '已废弃',
	statusList: ['ABANDONED']
}]

export const commonTypeTabArr = [
	{
		permission: 'ORD002',
		tabIndex: 0,
		tabName: '销售成交',
		requestParams: {
			bizMode: 0,
			periodType: 'S',
			orderType: 'S'
		}
	},
	{
		permission: 'ORD003',
		tabIndex: 1,
		tabName: '采购成交',
		requestParams: {
			bizMode: 0,
			periodType: 'S',
			orderType: 'P'
		}
	},
	{
		permission: 'ORD004',
		tabIndex: 2,
		tabName: '闭口销售',
		requestParams: {
			bizMode: 1,
			periodType: 'S',
			orderType: 'S'
		}
	}
]

// 订单列表状态
export const ORDER_TYPE = [
	{
		permission: 'ORD002',
		tabName: '销售订单',
		requestParams: {
			// bizMode: 0,
			// periodType: 'S',
			orderType: 'S'
		}
	},
	{
		permission: 'ORD003',
		tabName: '采购订单',
		requestParams: {
			// bizMode: 0,
			// periodType: 'S',
			orderType: 'P'
		}
	},
	{
		permission: 'ZXY004',
		tabName: '新油报告',
		requestParams: {

		}
	}
];

// 中新油订单状态
export const NEW_OIL_ORDER_TYPE = [
	{
		orderType: 'P',
		text: '采购成交',
		count: '',
		permission: 'ZXY005',
		requestParams: {
			orderType: 'P',
			bizMode: 0
		}
	},
	{
		orderType: 'S',
		text: '销售成交',
		count: '',
		permission: 'ZXY006',
		requestParams: {
			orderType: 'S',
			bizMode: 0
		}
	},
	{
		orderType: '',
		text: '闭口成交',
		count: '',
		permission: 'ZXY007',
		requestParams: {
			orderType: 'S',
			bizMode: 1
		}
	}
];


